/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; Copyright (c) 2020 STMicroelectronics.
  * All rights reserved.</center></h2>
  *
  * This software component is licensed by ST under BSD 3-Clause license,
  * the "License"; You may not use this file except in compliance with the
  * License. You may obtain a copy of the License at:
  *                        opensource.org/licenses/BSD-3-Clause
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32h7xx_hal.h"

#include "stm32h7xx_ll_bdma.h"
#include "stm32h7xx_ll_dma.h"
#include "stm32h7xx_ll_dma2d.h"
#include "stm32h7xx_ll_iwdg.h"
#include "stm32h7xx_ll_lpuart.h"
#include "stm32h7xx_ll_rcc.h"
#include "stm32h7xx_ll_crs.h"
#include "stm32h7xx_ll_bus.h"
#include "stm32h7xx_ll_system.h"
#include "stm32h7xx_ll_exti.h"
#include "stm32h7xx_ll_cortex.h"
#include "stm32h7xx_ll_utils.h"
#include "stm32h7xx_ll_pwr.h"
#include "stm32h7xx_ll_rng.h"
#include "stm32h7xx_ll_rtc.h"
#include "stm32h7xx_ll_tim.h"
#include "stm32h7xx_ll_gpio.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
#include "stm32h750xx.h"
/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define LED_E3_Pin LL_GPIO_PIN_3
#define LED_E3_GPIO_Port GPIOE
#define KEY_C13_Pin LL_GPIO_PIN_13
#define KEY_C13_GPIO_Port GPIOC
#define TM1638_STB_Pin LL_GPIO_PIN_0
#define TM1638_STB_GPIO_Port GPIOC
#define TM1638_CLK_Pin LL_GPIO_PIN_4
#define TM1638_CLK_GPIO_Port GPIOC
#define TM1638_DIO_Pin LL_GPIO_PIN_5
#define TM1638_DIO_GPIO_Port GPIOC
#define TM1638_STB0_Pin LL_GPIO_PIN_0
#define TM1638_STB0_GPIO_Port GPIOB
#define LCD_BL_Pin LL_GPIO_PIN_10
#define LCD_BL_GPIO_Port GPIOE
#define LCD_CS1_Pin LL_GPIO_PIN_11
#define LCD_CS1_GPIO_Port GPIOE
#define LCD_SCK_Pin LL_GPIO_PIN_12
#define LCD_SCK_GPIO_Port GPIOE
#define LCD_DC_Pin LL_GPIO_PIN_13
#define LCD_DC_GPIO_Port GPIOE
#define LCD_MOSI_Pin LL_GPIO_PIN_14
#define LCD_MOSI_GPIO_Port GPIOE
#define LCD_CS2_Pin LL_GPIO_PIN_15
#define LCD_CS2_GPIO_Port GPIOE
#define ONE_WIRE_Pin LL_GPIO_PIN_11
#define ONE_WIRE_GPIO_Port GPIOB
#define SPI2_SCK_Pin LL_GPIO_PIN_13
#define SPI2_SCK_GPIO_Port GPIOB
#define SPI2_MISO_Pin LL_GPIO_PIN_14
#define SPI2_MISO_GPIO_Port GPIOB
#define SPI2_MOSI_Pin LL_GPIO_PIN_15
#define SPI2_MOSI_GPIO_Port GPIOB
#define PCF_INT_Pin LL_GPIO_PIN_10
#define PCF_INT_GPIO_Port GPIOD
#define LS138_E1_Pin LL_GPIO_PIN_15
#define LS138_E1_GPIO_Port GPIOA
#define ESP_UART_TX_Pin LL_GPIO_PIN_12
#define ESP_UART_TX_GPIO_Port GPIOC
#define LS138_A1_Pin LL_GPIO_PIN_0
#define LS138_A1_GPIO_Port GPIOD
#define LS138_A2_Pin LL_GPIO_PIN_1
#define LS138_A2_GPIO_Port GPIOD
#define ESP_UART_RX_Pin LL_GPIO_PIN_2
#define ESP_UART_RX_GPIO_Port GPIOD
#define LS138_A0_Pin LL_GPIO_PIN_4
#define LS138_A0_GPIO_Port GPIOD
#define SPI1_CS1_Pin LL_GPIO_PIN_6
#define SPI1_CS1_GPIO_Port GPIOD
#define SPI1_MOSI_Pin LL_GPIO_PIN_7
#define SPI1_MOSI_GPIO_Port GPIOD
#define SPI1_SCK_Pin LL_GPIO_PIN_3
#define SPI1_SCK_GPIO_Port GPIOB
#define SPI1_MISO_Pin LL_GPIO_PIN_4
#define SPI1_MISO_GPIO_Port GPIOB
#define IIC1_SCL_Pin LL_GPIO_PIN_8
#define IIC1_SCL_GPIO_Port GPIOB
#define IIC1_SDA_Pin LL_GPIO_PIN_9
#define IIC1_SDA_GPIO_Port GPIOB

/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
